
package bma.shop.web;

import bma.shop.web.support.SpringContextHelper;

import com.vaadin.Application;

@SuppressWarnings("serial")
public class MyVaadinApplication extends Application {
	
	//@Autowired
	private MainPanel mainPanel;

	@Override
	public void init() {
		
		SpringContextHelper helper = new SpringContextHelper(this);
		mainPanel = (MainPanel) helper.getBean("mainPanel");
		helper.getBean("product.controller");
		helper.getBean("product.explorer.controller");
		
		setMainWindow(mainPanel);

	}

}
